<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title a m-cf">设备管理</div>
                </div>
                <div class="widget-body am-fr">
                    <div class="page_toolbar am-margin-bottom-xs am-cf">
                        <div class="am-form-group">
                            <div class="am-btn-group am-btn-group-xs">
                                <a class="am-btn am-btn-default am-btn-success"
                                   href="https://www.showdoc.com.cn/p/0e6e34a77c08709e7f740cae551eedc0"
                                   target="_blank">
                                    设备文档
                                </a>
                                <a class="am-btn am-btn-default am-btn-success" style="margin-left: 20px;"
                                   href="<?= url('shouhuo.device/listbyxykw') ?>">
                                    同步机器
                                </a>
                            </div>
                        </div>
                        <div class="am-form-group">
                            <div class="am-btn-group am-btn-group-xs">
                                <a class="am-btn am-btn-default am-btn-success" href="<?= url('shouhuo.device/add') ?>">
                                    <span class="am-icon-plus"></span> 新增
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="am-scrollable-horizontal am-u-sm-12">
                        <table width="100%" class="am-table am-table-compact am-table-striped
                         tpl-table-black am-text-nowrap">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>商户名称</th>
                                <th>设备名称</th>
                                <th>设备编号</th>
                                <th>左门编号</th>
                                <th>右门编号</th>
                                <th>最近时间</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if (count($list)): foreach ($list as $item): ?>
                                <tr>
                                    <td class="am-text-middle"><?= $item['id'] ?></td>
                                    <td class="am-text-middle"><?= $item['shop_name'] ?></td>
                                    <td class="am-text-middle"><?= $item['title'] ?></td>
                                    <td class="am-text-middle"><?= $item['imei'] ?></td>
                                    <td class="am-text-middle"><?= $item['door01']; ?></td>
                                    <td class="am-text-middle"><?= $item['door02'] ?></td>
                                    <td class="am-text-middle"><?= $item['uptime'] ?></td>
                                    <td class="am-text-middle">
                                        <div class="tpl-table-black-operation">
                                            <a href="<?= url('store/shouhuo.device/modify?id='.$item['id']) ?>">
                                                修改
                                            </a>
                                        </div>
                                    </td>
                                </tr>
                            <?php endforeach; else: ?>
                                <tr>
                                    <td colspan="10" class="am-text-center">暂无记录</td>
                                </tr>
                            <?php endif; ?>
                            </tbody>
                        </table>
                    </div>
                    <div class="am-u-lg-12 am-cf">
                        <div class="am-fr"></div>
                        <div class="am-fr pagination-total am-margin-right">
                            <div class="am-vertical-align-middle">总记录：<?= $total ?></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script>
</script>